package models;

import java.util.List;

import javax.persistence.Entity;

import play.db.jpa.Model;

@Entity
public class Business extends Model{
    
    public Business() {
    }
    
    public Business(Long businessId) {
        this.id = businessId;
    }
    
    public String name;
    
    public boolean isActive;
    
    public static List<Business> findActiveBusinesses() {
        return Business.find("isActive", true).fetch();
    }
}
